﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace FridgeManagerApp
{
    public class LUser : WUser
    {
        private bool isChoose;
        public bool IsChoose
        {
            get
            {
                return isChoose;
            }
            set
            {
                isChoose = value;
                RaisePropertyChanged("IsChoose");
            }
        }

        private String sexer;
        public String Sexer
        {
            get
            {
                return sexer;
            }
            set
            {
                sexer = value;
                RaisePropertyChanged("Sexer");
            }
        }

        private String sexerSelected;
        public String SexerSelected
        {
            get
            {
                return sexerSelected;
            }

            set
            {
                sexerSelected = value;
                RaisePropertyChanged("SexerSelected");
            }
        }


        private ObservableCollection<String> sexers = new ObservableCollection<String>();
        public ObservableCollection<String> Sexers
        {
            get
            {
                return sexers;
            }

            set
            {
                sexers = value;
                RaisePropertyChanged("Sexers");
            }
        }

        public LUser()
        {
            IsChoose = false;
            OpenID = "";
            UserName = "";
            Password = "";
            Nickname = "";
            Sex = -1;
            Province = "";
            City = "";
            Country = "";
            Headimgurl = "";
            Unionid = "";
            Sexers.Add("男");
            Sexers.Add("女");
            Sexers.Add("其它");
        }
    }
}
